<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.pms.entity.Project"%>
<%@ page import="com.pms.entity.Employee"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
  <head>
    <title>项目管理系统-项目编辑</title>
    <link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<script type="text/javascript">
		$('.dropdown-toggle').dropdown();
	</script>
	<style type="text/css">
		.navbar{
			width:980px;
			margin:0 auto;
		}
		.goal{
			border:1px solid #ccc;
			width:800px;
			height:auto;
			margin-bottom:15px;
		}
		
	</style>
  </head>
  
  <body>
     <%@ include file="include/head.jsp" %>
    <div class="container">
    	<div class="row">
  			<div class="span2" style="margin-top:20px">
  				<div class="well" style="padding:10px 0px;">
		            <ul class="nav nav-list">
		              <li class="nav-header"><h4>操作菜单</h4></li>
		              <li><a href="home.jspx">首页</a></li>
		              <li class="active"><a href="editProject.jsp">编辑项目</a></li>
		              <li><a href="addGoal.jsp">添加目标</a></li>
		              <li><a href="goalList.jsp">目标列表</a></li>
		            </ul>
	            </div>
	        </div>

			<%
				Project project=(Project)session.getAttribute("session_project");
			 %>
	  		<div class="span10" style="margin-top:20px">
	  			<form class="well form-horizontal" action="#" method="#">
		 				<legend>编辑项目</legend>
			    		<div class="control-group">
				            <label for="focusedInput" class="control-label">项目名称</label>
				            <div class="controls">
				              <input type="text"  id="focusedInput" class="input-xlarge focused" value="<%=project.getName()%>">
				            </div>
			          	</div>
								
		  				<div class="control-group ">
							<label for="textarea" class="control-label">项目描述</label>
		            		<div class="controls">
		              			<textarea rows="3" id="textarea" class="input-xlarge"><%=project.getDesc() %></textarea>
		            		</div>
						</div>
						
			    		<div class="control-group">
				            <label for="focusedInput" class="control-label">项目负责人</label>
				            <div class="controls">
				              <input type="text"  id="focusedInput" class="input-xlarge focused" value="<%=employee.getUsername()%>">
				            </div>
			          	</div>
						
						<div class="form-actions">
		            		<button class="btn btn-primary" type="submit">修改</button>
		          		</div>
	          	</form>
  			</div>
  		</div>
    </div>
  </body>
</html>
